namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("DELIVERY_GPS")]
    public class DELIVERY_GPS : ObjectRow {
        public DELIVERY_GPS()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public DELIVERY_GPS(System.Data.DataRow dataRow, ObjectTable parent) :
            base(dataRow, parent)
        {
        }

        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected DELIVERY_GPS(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
            base(info, context)
        {
        }

        [Key("ID", true, true)]
        public decimal ID
        {
            get
            {
                return (System.Decimal)GetValue("ID");
            }
            set
            {
                SetValue("ID", value);
            }
        }

        [Field("LONGITUDE")]
        public decimal LONGITUDE
        {
            get
            {
                return (System.Decimal)GetValue("LONGITUDE");
            }
            set
            {
                SetValue("LONGITUDE", value);
            }
        }

        [Field("TRUCKS_CODE")]
        public string TRUCKS_CODE
        {
            get
            {
                return (System.String)GetValue("TRUCKS_CODE");
            }
            set
            {
                SetValue("TRUCKS_CODE", value);
            }
        }

        [Field("LATITUDE")]
        public decimal LATITUDE
        {
            get
            {
                return (System.Decimal)GetValue("LATITUDE");
            }
            set
            {
                SetValue("LATITUDE", value);
            }
        }

        [Field("DOMAIN_ID")]
        public decimal DOMAIN_ID
        {
            get
            {
                return (System.Decimal)GetValue("DOMAIN_ID");
            }
            set
            {
                SetValue("DOMAIN_ID", value);
            }
        }


        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public decimal LAST_UPDATE_TIME
        {
            get
            {
                return (System.Decimal)GetValue("LAST_UPDATE_TIME");
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("CREATE_TIME")]
        public decimal CREATE_TIME
        {
            get
            {
                return (System.Decimal)GetValue("CREATE_TIME");
            }
            set
            {
                SetValue("CREATE_TIME", value);
            }
        }

        [Field("ACTIVE")]
        public bool ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE");
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }
    }
}
